﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<nelech.Models.DBModel.SearchAll>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
     תוצאות חיפוש - נלך
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <div id="left">

  <%Html.RenderAction("AdvertShowThree", "Advert", new { id = 7 });%>

</div>
<div id="main">
    <h2>
        תוצאות חיפוש</h2>
    <ul class="search">
        <% if (Model.tracks != null && Model.tracks.Count() > 0)
           { %>
        <% foreach (var track in Model.tracks)
           { %>
        <li>
            <h3>
                <%= Html.ActionLink(track.title, "TrackInfo", "Track", new { id = track.number }, null)%></h3>
            <%= track.summary %>
        </li>
        <%}
           }%>
        <% if (Model.places != null && Model.places.Count() > 0)
           { %>
        <% foreach (var place in Model.places)
           { %>
        <li>
            <h3>
                <%= Html.ActionLink(place.name, "PlaceInfo", "Place", new { id = place.id }, null)%></h3>
            <%= place.summary %>
        </li>
        <%}
           }%>
        <% if (Model.springs != null && Model.springs.Count() > 0)
           { %>
        <% foreach (var spring in Model.springs)
           { %>
        <li>
            <h3>
                <%= Html.ActionLink(spring.name, "SpringInfo", "Place", new { id = spring.id }, null)%></h3>
            <%= spring.summary %>
        </li>
        <%}
           }%>
        <% if (Model.zimmers != null && Model.zimmers.Count() > 0)
           { %>
        <% foreach (var zimmer in Model.zimmers)
           { %>
        <li>
            <h3>
                <%= Html.ActionLink(zimmer.name, "ZimerInfo", "Track", new { id = zimmer.id },null)%></h3>
        </li>
        <%}
           }%>
        <% if (Model.munachs != null && Model.munachs.Count() > 0)
           { %>
        <% foreach (var munach in Model.munachs)
           { %>
        <li>
            <h3>
                <%= Html.ActionLink(munach.name, "MunachInfo", "Home", new { id = munach.id }, null)%></h3>
        </li>
        <%}
           }%>
        
    </ul>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="publishTop" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Right" runat="server">
</asp:Content>
